package com.mera.tektronix.csviewer.controllers

import grails.converters.JSON

import com.mera.tektronix.csviewer.services.*

class EmployeeController {
	EmployeeService employeeService
	
	def getList() {
		render employeeService.getList(params) as JSON
	}
	
	def getElement() {
		render employeeService.getElement(params) as JSON
	}
	
	def addElement() {
		render employeeService.addElement(params) as JSON
	}
	
	def updateElement() {
		render employeeService.updateElement(params) as JSON
	}
	
	def deleteElement() {
		render employeeService.deleteElement(params) as JSON
	}
}
